from django.urls import path, re_path, converters
from . import views

app_name = 'article'

# http://127.0.0.1:8000/article/list/python+django+flask/

urlpatterns = [
    path('', views.index, name='index'),
    # python + flask + django
    # re_path(r'list/(?P<categories>\w+|(\w+\+\w+)+)/', views.articles_list, name='list'),

    path('list/<cate:categories>/', views.articles_list, name='list'),
    path('detail/<int:article_id>/', views.article_detail, name='detail')
]
